package com.adms.domain;

import java.util.Date;
import java.util.List;

public class Site {
	
//	
	private List<User> gridUsers;
	private Integer defaultGridUserId;
	private List<User> handleUsers;
	private Integer defaultHandleUserId;
	private List<User> legalUsers;
	private Integer defaultLegalUserId;
	private boolean completed;
//
	
    private Integer siteId;


	public boolean isCompleted() {
		return completed;
	}

	public void setCompleted(boolean completed) {
		this.completed = completed;
	}

	public List<User> getGridUsers() {
		return gridUsers;
	}

	public void setGridUsers(List<User> gridUsers) {
		this.gridUsers = gridUsers;
	}

	public Integer getDefaultGridUserId() {
		return defaultGridUserId;
	}

	public void setDefaultGridUserId(Integer defaultGridUserId) {
		this.defaultGridUserId = defaultGridUserId;
	}

	public List<User> getHandleUsers() {
		return handleUsers;
	}

	public void setHandleUsers(List<User> handleUsers) {
		this.handleUsers = handleUsers;
	}

	public Integer getDefaultHandleUserId() {
		return defaultHandleUserId;
	}

	public void setDefaultHandleUserId(Integer defaultHandleUserId) {
		this.defaultHandleUserId = defaultHandleUserId;
	}

	public List<User> getLegalUsers() {
		return legalUsers;
	}

	public void setLegalUsers(List<User> legalUsers) {
		this.legalUsers = legalUsers;
	}

	public Integer getDefaultLegalUserId() {
		return defaultLegalUserId;
	}

	public void setDefaultLegalUserId(Integer defaultLegalUserId) {
		this.defaultLegalUserId = defaultLegalUserId;
	}

	private Integer gridId;

    private String name;

    private Integer type;

    private String businessLicense;

    private String eivPermit;

    private String enterprisePromise;

    private Date createTime;

    private Date updateTime;

    public Integer getSiteId() {
        return siteId;
    }

    public void setSiteId(Integer siteId) {
        this.siteId = siteId;
    }

    public Integer getGridId() {
        return gridId;
    }

    public void setGridId(Integer gridId) {
        this.gridId = gridId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getBusinessLicense() {
        return businessLicense;
    }

    public void setBusinessLicense(String businessLicense) {
        this.businessLicense = businessLicense == null ? null : businessLicense.trim();
    }

    public String getEivPermit() {
        return eivPermit;
    }

    public void setEivPermit(String eivPermit) {
        this.eivPermit = eivPermit == null ? null : eivPermit.trim();
    }

    public String getEnterprisePromise() {
        return enterprisePromise;
    }

    public void setEnterprisePromise(String enterprisePromise) {
        this.enterprisePromise = enterprisePromise == null ? null : enterprisePromise.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((businessLicense == null) ? 0 : businessLicense.hashCode());
		result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());
		result = prime * result + ((eivPermit == null) ? 0 : eivPermit.hashCode());
		result = prime * result + ((enterprisePromise == null) ? 0 : enterprisePromise.hashCode());
		result = prime * result + ((gridId == null) ? 0 : gridId.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((siteId == null) ? 0 : siteId.hashCode());
		result = prime * result + ((type == null) ? 0 : type.hashCode());
		result = prime * result + ((updateTime == null) ? 0 : updateTime.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Site other = (Site) obj;
		if (businessLicense == null) {
			if (other.businessLicense != null)
				return false;
		} else if (!businessLicense.equals(other.businessLicense))
			return false;
		if (createTime == null) {
			if (other.createTime != null)
				return false;
		} else if (!createTime.equals(other.createTime))
			return false;
		if (eivPermit == null) {
			if (other.eivPermit != null)
				return false;
		} else if (!eivPermit.equals(other.eivPermit))
			return false;
		if (enterprisePromise == null) {
			if (other.enterprisePromise != null)
				return false;
		} else if (!enterprisePromise.equals(other.enterprisePromise))
			return false;
		if (gridId == null) {
			if (other.gridId != null)
				return false;
		} else if (!gridId.equals(other.gridId))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (siteId == null) {
			if (other.siteId != null)
				return false;
		} else if (!siteId.equals(other.siteId))
			return false;
		if (type == null) {
			if (other.type != null)
				return false;
		} else if (!type.equals(other.type))
			return false;
		if (updateTime == null) {
			if (other.updateTime != null)
				return false;
		} else if (!updateTime.equals(other.updateTime))
			return false;
		return true;
	}

}